package com.pk5.closure;

import java.util.function.Predicate;

@FunctionalInterface
interface ISayService {
    void say(String message);
}

public class Main {
    public static void main(String[] args) {
        int num = 1;
        ISayService iSayService = mesg -> {
            int j = num + 1;
            System.out.println(mesg + ":" + j);
        };
        iSayService.say("hello");


    }
}
